import Vue from "vue";
import {actions} from '../base';

let url = 'admin/api/manager/role-access';

export default {
    namespaced: true,
    state: {
        all: [],
    },
    mutations: {
        SET_ALL (state, data) {
            state.all = data;
        },
    },
    actions: Object.assign(actions(url), {
        Format({commit}) {
            return Vue.axios.get(`${url}/format`);
        }
    }),
    getters: {

    }
};
